<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group hide">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pid"  data-rule="required"   data-source="talent/talent_assess/selectpage" class="form-control selectpage" name="row[pid]" type="text" value="{$row.pid|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>

    <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tip_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-tip_type" class="form-control selectpicker" name="row[tip_type]">
                {foreach name="tipTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.tip_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group" data-favisible="tip_type=2">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tip_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tip_id" data-rule="required" data-source="talent/talent_assess_tip/index" class="form-control selectpage" name="row[tip_id]" type="text" value="{$row.tip_id|htmlentities}">
        </div>
    </div>

    <div class="form-group" data-favisible="tip_type=1">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tip')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-tip" class="form-control editor" rows="5" name="row[tip]" cols="50">{$row.tip|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group" data-favisible="pid=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-score" class="form-control" name="row[score]" type="number" value="{$row.score|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Tip_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-tip_id" data-rule="required" data-source="tip/index" class="form-control selectpage" name="row[tip_id]" type="text" value="{$row.tip_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group" data-favisible="pid=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_score')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-max_score" class="form-control" name="row[max_score]" type="number" value="{$row.max_score|htmlentities}">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
